package cn.seecoder.courselearning.po.question;

import cn.seecoder.courselearning.vo.question.QuestionVO;

public class Question {
    private Integer id;
    private Integer course_id;
    private String detail;
    private String optionA;
    private String optionB;
    private String optionC;
    private String optionD;
    private String resolution; //解析
    private char answer;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCourse_id() {
        return course_id;
    }

    public void setCourse_id(Integer course_id) {
        this.course_id = course_id;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getOptionA() {
        return optionA;
    }

    public void setOptionA(String optionA) {
        this.optionA = optionA;
    }

    public String getOptionB() {
        return optionB;
    }

    public void setOptionB(String optionB) {
        this.optionB = optionB;
    }

    public String getOptionC() {
        return optionC;
    }

    public void setOptionC(String optionC) {
        this.optionC = optionC;
    }

    public String getOptionD() {
        return optionD;
    }

    public void setOptionD(String optionD) {
        this.optionD = optionD;
    }

    public String getResolution() {
        return resolution;
    }

    public void setResolution(String resolution) {
        this.resolution = resolution;
    }

    public char getAnswer() {
        return answer;
    }

    public void setAnswer(char answer) {
        this.answer = answer;
    }

    public Question(){

    }

    public Question(QuestionVO questionVO) {
        System.out.println("用VO构造一个PO ：Question");
        System.out.println("123"+questionVO.getDetail());
        this.id = questionVO.getId();
        this.course_id = questionVO.getCourseId();
        this.detail = questionVO.getDetail();
        this.optionA = questionVO.getOptionA();
        this.optionB = questionVO.getOptionB();
        this.optionC = questionVO.getOptionC();
        this.optionD = questionVO.getOptionD();
        this.resolution = questionVO.getResolution();
        this.answer = questionVO.getAnswer();
    }
}
